<?php /* Smarty version 2.6.16, created on 2008-05-28 10:55:53
         compiled from magistrado/magistrado_formJornada.html */ ?>
<script type="text/javascript" src="extras/magistrado/validardados.js" charset="iso-8859-1"></script>
<div id="corpo"  style="width:809px; border-left:1px solid  #3275ac; border-bottom:1px solid  #3275ac; border-right:1px solid  #3275ac;  background-color:#a1c0d9">
	<div id="conteudo" align="center"  style="vertical-align:top;  background-color:#FFFFFF; width:95%;"><br />
		<?php if ($_SESSION['seq_magistrado'] != ""): ?>
			<form method="POST" action="?d=magistrado&a=magistrado&f=salvarJornada">
		<?php else: ?>
			<form method="POST" action="?d=magistrado&a=magistrado&f=salvarTodos">
		<?php endif; ?>	
		<div id="migalha" align="left" style="background:#ffffff; height:20px; width:98%;  padding-top:4px; padding-left:5px">
			<div id="url" style="float:left"><font color="#3475AB"><strong>Jornada de trabalho</strong></font></div>
		</div>
		<table width="100%" cellpadding="0" cellspacing="0">
      	   	<tr>
      	   		<td>
      	   			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'aba/abas.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      	   		</td>
      		</tr>
      	</table>
      	<br><br>
		<table>
			<tr>
      			<td colspan="3" align="center">
      				<div id="div_msg" style="display:<?php if ($_GET['msg'] == ''): ?>none<?php else: ?>''<?php endif; ?>">
      					<font color="Red"><?php echo $_GET['msg']; ?>
</font>
      				</div>	
      			</td>
      		</tr>
			<?php $_from = $this->_tpl_vars['semana']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['dado']):
?>
				<tr>
					<td width="20%"></td>
					<td width="30%" align="left"><label class="labelcor"><?php echo $this->_tpl_vars['dado']['DESCRICAO']; ?>
</label></td>
					<td width="50%" valign="middle" align="left">
						<?php $_from = $this->_tpl_vars['turno']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['dado2']):
?>
							<input type="checkbox" class="checkcor" name='turno[<?php echo $this->_tpl_vars['dado']['CODIGO']; ?>
][<?php echo $this->_tpl_vars['dado2']['CODIGO']; ?>
]'  <?php if ($_SESSION['jornada'][$this->_tpl_vars['dado']['CODIGO']][$this->_tpl_vars['dado2']['CODIGO']] == 'on'): ?>checked<?php endif; ?>><?php echo $this->_tpl_vars['dado2']['DESCRICAO']; ?>

						<?php endforeach; endif; unset($_from); ?>	
						
					</td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>	
		</table>
		
		<table>
			<tr>
	    		<td align="center">
		    			<input type="submit" name="salvar" id="salvar" value="Salvar" class="botaocor">
		    			<input type="button" name="voltar" id="voltar" value="Voltar" class="botaocor" onclick="document.location.href='?d=magistrado&a=magistrado&f=formSituacao'">
	    		</td>
		    </tr>
		</table>
		<script>
			setTimeout("escondeDivMsg();",3000);
		</script>	
		</form>
		</div>
	</div>
</div>